const express = require("express");
const app = express();
const port = 3000;

app.get("/", (req, res) => {
  res.send("hello world");
});

app.post("/", (req, res) => {
  res.send("this is a post request");
});

app.put("/user", (req, res) => {
  res.send("get a put request at /user");
});

app.delete("/user", (req, res) => {
  res.send("get a delete request at /user");
});

app.listen(port, () => {
  console.log("server running at http://localhost:3000/");
});
